<template>
<div id="resetPage">
     <mt-header :title="title">
        <router-link to="/index" slot="left">
        <mt-button icon="back">返回</mt-button>
        </router-link>
    </mt-header> 
    <div class="mainBody">
        <student-page v-show="this.title=='修改学生信息'" holderName="请选择学生" ></student-page>
        <teacher-page v-show="this.title=='修改老师信息'"></teacher-page>
        <student-page v-show="this.title=='班级相册'" holderName="请选择班级"></student-page>
        <send-news-page v-show="this.title=='发布班级通知信息'"></send-news-page>
    </div>
</div>
</template>
<script>
import StudentPage from './StudentPage'
import TeacherPage from './TeacherPage'
import SendNewsPage from './SendNewsPage'
    export default{
        data(){
            return{
                title:'',
                isShow:false
            }
        },
        created(){
            this.title=this.$route.query.title;
        },
        components:{
            StudentPage,
            TeacherPage,
            SendNewsPage
        },
        /*mounted(){
             var url="http://125.210.160.93:8080/SmEdu/port/scho/gradList";
                this.$http.post(url,{schoId:19}).then((res)=>{
                console.log(res);
                console.log(res.data);
                console.log(res.data.body);
                // console.log(res.data.head);
                // console.log(res.data.head.desc);
                 
            }).catch((err)=>{
                console.log(err);
            })
        }*/
    }
</script>
<style>
 #resetPage .mainBody{
     margin-top:0.5333rem;
 }
</style>



